package com.etl.sms.controller;

import com.etl.base.BaseController;
import com.xr.dto.ResultDto;
import com.xr.util.Assert;
import com.xr.util.Utils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 短信 前端控制器
 * </p>
 *
 * @author Arnold Yang
 * @since 2018-07-30
 */
@Controller
@RequestMapping("/sms")
public class SmsController extends BaseController {

  @ResponseBody
  @RequestMapping("/verify/code")
  public ResultDto borrowDetail(Integer type) throws Exception {
    Assert.notNull(type, "参数不合法");

    return super.successData(Utils.newHashMap("sms_code", ""));
  }

}
